package cn.net.springboot.service.impl;

import cn.net.springboot.dao.BloggerDao;
import cn.net.springboot.entity.Blogger;
import cn.net.springboot.service.BloggerService;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;

/**
 * 博主Service实现类
 *
 * @author Administrator
 */
@Service("bloggerService")
public class BloggerServiceImpl implements BloggerService {

    @Resource
    private BloggerDao bloggerDao;

    public Blogger find() {
        return bloggerDao.find();
    }

    public Blogger getByUserName(String userName) {
        return bloggerDao.getByUserName(userName);
    }

    public Integer update(Blogger blogger) {
        return bloggerDao.update(blogger);
    }

}
